/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package coms.action;

import coms.dto.User;

/**
 *
 * @author Pk
 */
public class selectMenuAction extends ComsActionSupport{
    private boolean admin;

    public boolean isAdmin() {
        return admin;
    }

    public void setAdmin(boolean admin) {
        this.admin = admin;
    }
    
    @Override
    public String execute()
    {
        User usr = (User)session.get("user");        
        System.out.println(usr.getUsername());
        System.out.println(usr.isAdmin());
        if(usr.isAdmin())    
            admin=true;
        else
            admin=false;
        return SUCCESS;
    }
    
}
